home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 …SCII & the Runetime Code / ADC Developer CD (1992-07) (''Butch ASCII And The Runtime Code'')_iso / Dev.CD 199207.iso / Tools & Apps / Devices & Hardware / A⁄ROSE / MultiThread / MultiThread.a next >
Encoding:
Text File  |  1991-03-20  |  1.2 KB  |  74 lines  |  [TEXT/MPS ]

  1. *
  2. *    Beginning of the 'mlti' resource
  3. *    
  4. *    Written by:    Anumele D. Raja
  5. *    
  6. *    Date:        March 19, 1991
  7. *    
  8. *    Copyright @ Apple Computer, Inc.  1991
  9. *
  10.         Case    On
  11.         Include    'Traps.a'
  12. *
  13. *    Setup - Macro to initialize address table
  14. *
  15.         Macro
  16.         Setup    &Name
  17. *        Print    Push, NoGen
  18.         Import    &Name
  19.         LEA        &Name, A0
  20.         Move.L    A0, D0
  21.         _StripAddress
  22.         Move.L    D0, (A1)+
  23. *        Print    Pop
  24.         EndM
  25. *    Entry    
  26. *        Name = Name of entry point.
  27. *
  28. CallAddress    Main
  29. *
  30. *  Instructions to set up the table
  31. *
  32. SetupAddresses
  33.         Lea        Addresses, A1
  34. *
  35.         Setup    CloseQueue
  36.         Setup    FreeMsg
  37.         Setup    GetCard
  38.         Setup    GetETick
  39.         Setup    GetICCTID
  40.         Setup    GetIPCg
  41.         Setup    GetMsg
  42.         Setup    GetNameTID
  43.         Setup    GetTickPS
  44.         Setup    GetTID
  45.         Setup    IsLocal
  46.         Setup    KillReceive
  47.         Setup    LockRealArea
  48.         Setup    Lookup_Task
  49.         Setup    NetCopy
  50.         Setup    OpenQueue
  51.         Setup    Receive
  52.         Setup    Register_Task
  53.         Setup    Send
  54.         Setup    SwapTID
  55.         Setup    UnlockRealArea
  56. *
  57. *  Return the pointer to the Address table
  58. *
  59.         Lea        RsrcHandle, A0
  60.         Move.L    A0, D0
  61.         Rts
  62. *
  63. *    Queue table with address of the routines
  64. *
  65. QueueEntry    Equ    *
  66.  
  67. RsrcHandle    Ds.L    1            ; Place to save the handle to the resource
  68. *
  69. *  Address of the routines
  70. *
  71. Addresses
  72.         Ds.L    21                ; There are twenty one routines in A/ROSE
  73.         EndMain
  74.         End